home *** CD-ROM | disk | FTP | other *** search
- function bubblenote()
- {
- }
- function captionbutton()
- {
- switch(this.name)
- {
- case "demo":
- this.pos = 2;
- break;
- case "full":
- this.pos = 1;
- }
- }
- stop();
- _root.flipper.removeMovieClip();
- if(_root.version === "web")
- {
- gotoAndStop(14);
- _root.timesplayed._visible = false;
- }
- _root.timesplayed = "YOU HAVE " + (15 - myLocalSO.data.plays) + " PLAYS LEFT";
- Object.registerClass("bubblenote",bubblenote);
- Object.registerClass("text_demobuttonbig2",captionbutton);
- Object.registerClass("register_button",captionbutton);
- bubblenote.prototype = new MovieClip();
- captionbutton.prototype = new MovieClip();
- _quality = "low";
- attachMovie("text_demobuttonbig2","demo",4,{_x:800,_y:330,name:"demo"});
- attachMovie("register_button","register_b",5,{_x:-200,_y:300,name:"full"});
- attachMovie("register_name","register_name",6,{_x:800,_y:170,name:"name"});
- attachMovie("register_key","register_key",7,{_x:-200,_y:235,name:"key"});
- register_name.onEnterFrame = function()
- {
- if(this.i < 200)
- {
- this.i = this.i + 1;
- }
- if(this.i > 5)
- {
- this.snapinplace(1,2,170,300);
- }
- if(this.i > 25)
- {
- register_key.snapinplace(1,2,235,300);
- }
- if(this.i > 45)
- {
- register_b.snapinplace(1,2,300,300);
- }
- if(this.i > 65)
- {
- demo.snapinplace(1,2,330,300);
- }
- };
- Selection.setFocus("_root.nametext");
- captionbutton.prototype.onRollOver = function()
- {
- _root.bubblenote.closer = false;
- if(this.name == "demo")
- {
- this._y = 335;
- }
- if(this.name == "p_up")
- {
- this._y = 335;
- this._x = 335;
- }
- if(this.name == "full")
- {
- this._y = 305;
- }
- if(!this.done)
- {
- this.addstar(this);
- cap = attachMovie("bubblenote","bubblenote",200000,{_xscale:4,_yscale:4,_y:this._y + 5,_x:this._x + 10,acc:0.7,dec:3,destYs:101,destXs:101,destX:this._x + 110,_alpha:0});
- cap.gotoAndStop(this.pos);
- this.done = true;
- }
- };
- captionbutton.prototype.onRelease = function()
- {
- if(this.name == "demo")
- {
- trace(_root.plays);
- _root.cap.removeMovieClip();
- _root.gotoAndStop("intro");
- _root.register_b.removeMovieClip();
- _root.register_key.removeMovieClip();
- _root.register_name.removeMovieClip();
- _root.demo.removeMovieClip();
- }
- else
- {
- cap.gotoAndStop(4);
- }
- if(this.name == "full" and validateKey(_root.nametext,_root.registration) == true)
- {
- _root.registergame = true;
- register_game();
- _root.cap.removeMovieClip();
- _root.gotoAndStop("intro");
- _root.register_b.removeMovieClip();
- _root.register_key.removeMovieClip();
- _root.register_name.removeMovieClip();
- _root.demo.removeMovieClip();
- }
- else
- {
- if(this.name == "full")
- {
- this._y = 305;
- }
- cap.gotoAndStop(3);
- }
- };
- captionbutton.prototype.onRollOut = function()
- {
- _root.bubblenote.closer = true;
- _root.cap.removeMovieClip();
- this.done = false;
- };
- bubblenote.prototype.onEnterFrame = function()
- {
- if(this.closer == true)
- {
- this.destYs = 0;
- this.destXs = 0;
- if(this._xscale <= 0)
- {
- this.removeMovieClip();
- }
- }
- this.onRollOut = function()
- {
- this.destYs = 0;
- this.destXs = 0;
- if(this._xscale <= 0)
- {
- this.removeMovieClip();
- }
- };
- if(this.closer)
- {
- this.removeMovieClip();
- }
- if(!this.closer)
- {
- if(this._x < this.destx)
- {
- this.t = this.t + 1;
- this._x += 35 / this.t;
- }
- if(this._xscale < 100)
- {
- this._xscale += 10;
- this._yscale += 10;
- }
- if(this._alpha < 100)
- {
- this._alpha += 10;
- }
- }
- else
- {
- this.removeMovieClip();
- }
- };
-